<%@ include file="includes/top.jsp"%>

<center><font size="4"><b>My Orders</b></font></center>

<table align="center" bgcolor="#008800" border="0" cellspacing="2" cellpadding="3">
	
	<tr bgcolor="#CCCCCC">
		<td><b>Order ID</b></td>
		<td><b>Date</b></td>
		<td><b>Total Price</b></td>
	</tr>
	
	<s:iterator value="order" id="${orderList}">
		<tr bgcolor="#FFFF88">
			<td>
				<s:a action="/shop/viewOrder.do">
					<s:param name="orderId" value="${order.orderId}"/>
					<b><font color="BLACK"><s:property value="${order.orderId}" /></font></b>
				</s:a>
			</td>
			
			<td><fmt:formatDate value="${order.orderDate}" pattern="yyyy/MM/dd hh:mm:ss" /></td>
			<td><fmt:formatNumber value="${order.totalPrice}" pattern="$#,##0.00" /></td>
		</tr>
	</s:iterator>
</table>

<%@ include file="includes/bottom.jsp"%>
